//package top.mschen.blog.service.impl;
//
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.cache.annotation.Cacheable;
//import org.springframework.stereotype.Service;
//import top.mschen.blog.dao.SgArticleMapper;
//import top.mschen.blog.entity.SgArticle;
//import top.mschen.blog.service.SgArticleService;
//
//import java.util.List;
//
//@Service
//public class SgArticleServiceImpl  implements SgArticleService {
//
//    @Autowired
//    private SgArticleMapper sgArticleMapper;
//
//    @Override
//    // 600秒，未指定的key，使用默认策略
////    @Cacheable(value = "DefaultKeyTest", keyGenerator = "simpleKeyGenerator")
//    @Cacheable(value = "UserInfoList", keyGenerator = "simpleKeyGenerator")//3000
//    public List<SgArticle> selectSgArticeList() {
//        return sgArticleMapper.selectSgArticleList();
//    }
//}
